export interface stateInt {
    isUserLoggedIn: boolean
}

const state: stateInt =
    {
        isUserLoggedIn: false
    }
;

const mutations = {
    setLoginState(state, value) {
        state.isUserLoggedIn = value;
    }
};

const getters = {
    isUserLoggedIn: (state) => state.isUserLoggedIn
};

export default {
    namespaced: true, // 使用命名空间
    state,
    mutations,
    getters
};


